package net.minecraft.src;

import java.util.List;
import net.minecraft.client.Minecraft;
import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.GL11;

public class GuiEditReceiverStamp extends GuiEditRecTransStamp
{
    private World  world;
    private Coords updated;
    private Class  sendClass;
    public GuiEditReceiverStamp(Class fromSendClass,TileRecTransStamp inTileRecTrans,World inWorld,Coords inUpdated)
    {
    	super(inTileRecTrans);
    	
    	
    	sendClass = fromSendClass;
        world = inWorld;
        updated = inUpdated;
    }


    public void onGuiClosed()
    {
        world.scheduleBlockUpdate(updated.x, updated.y, updated.z, world.getBlockId(updated.x, updated.y, updated.z),2);
        if (mc.theWorld.isRemote)
        {
        	Packet230ModLoader  packet = new Packet230ModLoader ();

        	tileRecTrans.saveIntoPacket(packet);

            ModLoaderMp.sendPacket( ModLoaderMp.getModInstance(mod_AsPj.class), packet);
        }
    }

}
